package com.mzm.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.mzm.api.MediaType;
import com.mzm.api.PeriodicityType;

@Entity(name = "MediaInfo")
@Table(name = "MEDIA_INFO")
public class MediaInfo extends BaseEntity{

	@Column(name = "NAME")
	private String name;

	@Enumerated(EnumType.STRING)
	@Column(name = "MEDIA_TYPE")
	private MediaType mediaType;

	@Enumerated(EnumType.STRING)
	@Column(name = "PERIOD_TYPE")
	private PeriodicityType periodicityType;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public MediaType getMediaType() {
		return mediaType;
	}

	public void setMediaType(MediaType mediaType) {
		this.mediaType = mediaType;
	}

	public PeriodicityType getPeriodicityType() {
		return periodicityType;
	}

	public void setPeriodicityType(PeriodicityType periodicityType) {
		this.periodicityType = periodicityType;
	}

}
